#!/bin/bash
echo "ran! $0 by `whoami`  in `pwd` "
#exit 0
CON_NAME='Wired connection 1'
RET=$([[ `nmcli con show --active "${CON_NAME}" |grep "GENERAL.STATE"` = "" ]]    \
	&& nmcli con up   "${CON_NAME}" || nmcli con down "${CON_NAME}" )
notify-send "$RET"

